package com.jiazhong.front.controller;

import com.jiazhong.commons.Util.JsonResult;
import com.jiazhong.front.service.StockService;
import jakarta.annotation.Resource;
import jakarta.servlet.http.HttpServletRequest;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/stock")
public class StockController {
    @Resource
    private StockService service;

    @GetMapping("/find")
    public JsonResult find(HttpServletRequest request) {
        return service.find(request.getHeader("token"));
    }
}
